package com.shop.pojo.sms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

//秒杀活动
@TableName("sms_seckill_promotion")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sms_Seckill_promotion {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;//活动标题
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date start_time;//开始日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date end_time;//结束日期
    private int status;//上下线状态
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;//创建时间
    private Long user_id;//创建人
}
